from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.CheckUsername.as_view()),
    url(r'^phones/(?P<mobile>1[3-9]\d{9})/count/$',views.CheckMobile.as_view()),
    url(r'^$',views.RegisterView.as_view()),
    url(r'^auths/', obtain_jwt_token),
]